package com.framework.modules.job.task;

import com.alibaba.druid.util.TransactionInfo;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.framework.entity.flow.FlowAccount;
import com.framework.entity.sys.SysAgent;
import com.framework.entity.sys.SysBank;
import com.framework.entity.sys.SysLvRate;
import com.framework.entity.ter.TerMerchantReport;
import com.framework.entity.ter.TerTerminalInfo;
import com.framework.entity.tran.*;
import com.framework.service.*;
import com.framework.utils.DateUtils;
import lombok.extern.slf4j.Slf4j;
import org.jetbrains.annotations.NotNull;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Random;

/**
 * @author wq
 */
@Component("orderTransformTask")
@Slf4j
public class OrderTransformTask {


    private static final BigDecimal multi =new BigDecimal("10000");

    @Transactional(rollbackFor = Exception.class)
    public void transform() {
        log.info("正在整理银行卡");


        log.info("整理银行卡结束");
    }

    private BigDecimal getAmount() {
        int max = 110;
        int min = 95;
        Random random = new Random();
        int s = random.nextInt(max) % (max - min + 1) + min;

        int num = s * 100;
        //System.out.println(num);
        return new BigDecimal(num);
    }



}
